//
//  UITableViewCell+BVCategort.m
//  BVUIBizKit
//
//  Created by xiute on 2019/11/12.
//

#import "UITableViewCell+BVCategort.h"
#import "BVVideoPlayView.h"



@implementation UITableViewCell (BVCategort)

- (BOOL)isPlaying {
    return [self isContainPlayViewWithView:self];
}


- (BOOL)isContainPlayViewWithView:(UIView *)aView {
    for (UIView *subView in aView.subviews) {
        if ([subView isKindOfClass:[BVVideoPlayView class]]) {
            return YES;
        }
        if ([self isContainPlayViewWithView:subView]) {
            return YES;
        }
    }
    return NO;
}

@end
